<ion-header>
    <ion-toolbar content-page class="fir-toolbar">
        <ion-buttons start>
            <button ion-button icon-only (click)="backButtonClick($event)">
                <i class="toolbar-back"></i>
            </button>
        </ion-buttons>
        <ion-title>团队业绩</ion-title>
        <ion-buttons end>
            <button ion-button icon-only adpmenutoggle>
                <i class="toolbar-menu"></i>
            </button>
        </ion-buttons>
    </ion-toolbar>
    <div class="header">
        <div class="region">
            <div class="wrapper">
                <span class="icon_down"></span>
                <ion-multi-picker item-content cancelText="取消" doneText="确定" [(ngModel)] = "filter.code" 
                [multiPickerColumns]="organizeData" (click)="addAttri()" placeholder="请选择"></ion-multi-picker>
            </div>
        </div>
        <div class="dateType">
            <div class="container">
                <div [class.active]="filter.type==='D'" (click)="changeDateType('D')">DTD</div>
                <div [class.active]="filter.type==='M'" (click)="changeDateType('M')">MTD</div>
                <div [class.active]="filter.type==='Q'" (click)="changeDateType('Q')">QTD</div>
                <div [class.active]="filter.type==='Y'" (click)="changeDateType('Y')">YTD</div>
            </div>
        </div>
        <div class="dataFilter">
            <div class="container">
                <ion-datetime *ngIf="filter.type==='D'" [(ngModel)]="filter.time" [yearValues]="getYearList(2018,2100)"
                cancelText="取消" doneText="确定" displayFormat="YYYY/MM/DD" pickerFormat="YYYYMMDD" [disabled]="true"
                [pickerOptions]="pickerOptions"></ion-datetime>
                <ion-datetime *ngIf="filter.type!=='D'" [(ngModel)]="filter.time" [yearValues]="getYearList(2018,2100)"
                cancelText="取消" doneText="确定" displayFormat="YYYY/MM" pickerFormat="YYYYMM"
                [pickerOptions]="pickerOptions"></ion-datetime>
                <button class="search" ion-button [disabled]="filter.code===''||filter.type===''" (click)="getInhouseData()">查询</button>
            </div>
        </div>
    </div>
</ion-header>

<ion-content>
    <div class="listDetail">
        <ul>
            <li><span>递交PC</span><span>{{inhouseData?.sbmt_pc?(inhouseData?.sbmt_pc | numberTrans):'-'}}</span></li>
            <li><span>净PC</span><span>{{inhouseData?.net_pc?(inhouseData?.net_pc | numberTrans):'-'}}</span></li>
            <li><span>目标PC</span><span>{{inhouseData?.trg_net_pc?(inhouseData?.trg_net_pc | numberTrans):'-'}}</span></li>
            <li><span>递交PC达标率</span><span>{{inhouseData?.pc_sub_ach_rt?(inhouseData?.pc_sub_ach_rt | numberTrans):'-'}}</span></li>
            <li><span>净PC达标率</span><span>{{inhouseData?.pc_net_ach_rt?(inhouseData?.pc_net_ach_rt | numberTrans):'-'}}</span></li>
        </ul>
    </div>
    <div class="listDetail">
        <ul>
            <li><span>递交APE</span><span>{{inhouseData?.sub_ape?(inhouseData?.sub_ape | numberTrans):'-'}}</span></li>
            <li><span>净APE</span><span>{{inhouseData?.net_ape?(inhouseData?.net_ape | numberTrans):'-'}}</span></li>
            <li><span>目标APE</span><span>{{inhouseData?.trg_ape?(inhouseData?.trg_ape | numberTrans):'-'}}</span></li>
            <li><span>递交APE达标率</span><span>{{inhouseData?.ape_sub_ach_rt?(inhouseData?.ape_sub_ach_rt | numberTrans):'-'}}</span></li>
            <li><span>净APE达标率</span><span>{{inhouseData?.ape_net_ach_rt?(inhouseData?.ape_net_ach_rt | numberTrans):'-'}}</span></li>
        </ul>
    </div>
    <div class="listDetail">
        <ul>
            <li><span>净NBV</span><span>{{inhouseData?.net_nbv?(inhouseData?.net_nbv | numberTrans):'-'}}</span></li>
            <li><span>NBV目标</span><span>{{inhouseData?.trg_net_nbv?(inhouseData?.trg_net_nbv | numberTrans):'-'}}</span></li>
            <li><span>NBV达标率</span><span>{{inhouseData?.nbv_ach_rt?(inhouseData?.nbv_ach_rt | numberTrans):'-'}}</span></li>
        </ul>
    </div>
    <div class="listDetail">
        <ul>
            <li><span>实际人力</span><span>{{inhouseData?.act_agt?(inhouseData?.act_agt | numberTrans):'-'}}</span></li>
            <li><span>目标人力</span><span>{{inhouseData?.trg_agt?(inhouseData?.trg_agt | numberTrans):'-'}}</span></li>
            <li><span>人力达标率</span><span>{{inhouseData?.agt_ach_rt?(inhouseData?.agt_ach_rt | numberTrans):'-'}}</span></li>
            <li><span>新增人力</span><span>{{inhouseData?.new_agt?(inhouseData?.new_agt | numberTrans):'-'}}</span></li>
            <li><span>新增目标</span><span>{{inhouseData?.trg_new_agt?(inhouseData?.trg_new_agt | numberTrans):'-'}}</span></li>
            <li><span>新增达标率</span><span>{{inhouseData?.new_agt_ach_rt?(inhouseData?.new_agt_ach_rt | numberTrans):'-'}}</span></li>
        </ul>
    </div>
    <div class="listDetail">
        <ul>
            <li><span>寿险出单人力</span><span>{{inhouseData?.lf_case_agt?(inhouseData?.lf_case_agt | numberTrans):'-'}}</span></li>
            <li><span>寿险出单人力目标</span><span>{{inhouseData?.trg_lf_case_agt?(inhouseData?.trg_lf_case_agt | numberTrans):'-'}}</span></li>
            <li><span>寿险出单人力达标率</span><span>{{inhouseData?.lf_case_agt_ach_rt?(inhouseData?.lf_case_agt_ach_rt | numberTrans):'-'}}</span></li>
            <li><span>寿险出单人力与人力占比</span><span>{{inhouseData?.lf_mgr_case_ach_rt?(inhouseData?.lf_mgr_case_ach_rt | numberTrans):'-'}}</span></li>
        </ul>
    </div>
    <div class="listDetail">
        <ul>
            <li><span>有效人力</span><span>{{inhouseData?.infc_agt?(inhouseData?.infc_agt | numberTrans):'-'}}</span></li>
            <li><span>主管人数</span><span>{{inhouseData?.infc_mgr?(inhouseData?.infc_mgr | numberTrans):'-'}}</span></li>
            <li><span>主管出单人数</span><span>{{inhouseData?.lf_case_mgr?(inhouseData?.lf_case_mgr | numberTrans):'-'}}</span></li>
            <li><span>人均计划书打印量</span><span>{{inhouseData?.prt_cmp_num?(inhouseData?.prt_cmp_num | numberTrans):'-'}}</span></li>
            <!-- <li><span>新增首次寿险出单人力</span><span>少字段</span></li> -->
        </ul>
    </div>
    <div class="listDetail">
        <ul>
            <li><span>3MO%</span><span>{{inhouseData?.mo_rt?(inhouseData?.mo_rt | numberTrans):'-'}}</span></li>
            <li><span>13个月件数续保率</span><span>{{inhouseData?.lf_pc_cnsrv_rt_13?(inhouseData?.lf_pc_cnsrv_rt_13 | numberTrans):'-'}}</span></li>
            <li><span>19个月件数续保率</span><span>{{inhouseData?.lf_pc_cnsrv_rt_19?(inhouseData?.lf_pc_cnsrv_rt_19 | numberTrans):'-'}}</span></li>
        </ul>
    </div>
</ion-content>